package com.his.controller;


import com.his.pojo.SettleCategory;
import com.his.service.SettleCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SettleController {

    //注入service
    @Autowired
    private SettleCategoryService settleCategoryService;

    /*处理加载下拉列表框结算类型数据的请求*/
    @CrossOrigin
    @GetMapping("/initCategory")
    public List<SettleCategory> initGatecory(){
        return settleCategoryService.list();
    }
}
